/*
-------------------------------------------------------------------
BIE is Copyright 2001-2003 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
*/
package com.webdeninteractive.sbie;

import java.lang.ClassLoader;
import com.webdeninteractive.sbie.util.MappedObjectFactoryBase;
import com.webdeninteractive.sbie.RemoteSystem;

/**
 * A generator of RemoteSystem implementations.
 * <p>
 * {@link ServiceFactory} contains general usage information.
 *
 * @see RemoteSystem
 *
 * @version $Id: RemoteSystemFactory.java,v 1.1.1.1 2003/05/20 16:56:49 gdf Exp $
 */
public class RemoteSystemFactory extends MappedObjectFactoryBase {

    /** Sets the ClassLoader to use for instantiating new RemoteSystems. */
    public RemoteSystemFactory( ClassLoader loader ) {
        super(loader);
    }

    /** Create a new RemoteSystem.  The implementation returned
     *  will be the one registered to the given name.
     */
    public RemoteSystem makeRemoteSystem( String name )
        throws ClassNotFoundException, InstantiationException, IllegalAccessException
    {
        RemoteSystem newsvc = (RemoteSystem)this.makeMappedObject(name);
        return newsvc;
    }

}
